package com.shaokel.repository;

import com.shaokel.pojo.User;

import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.Query;
import org.springframework.stereotype.Repository;

/**
 * @author 少丶客
 * @ClassName UserRepository
 * @Description TODO
 * @Date 2020/6/24 11:24
 * @Vesion 1.0
 */
@Repository
public interface UserRepository extends JpaRepository<User,Long> {

    //查询用户名和密码
    User findByUsernameAndPassword(String username,String password);

}